/*
 * @Date: 2022-10-18 14:01:48
 * @LastEditors: Chuying
 * @LastEditTime: 2022-10-19 10:00:36
 * @Description:
 */
const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(
        '/api',
        createProxyMiddleware({
            target: 'https://t-mgateway.gaodunwangxiao.com/',
            changeOrigin: true,
            pathRewrite: {
                '^/api': '',
            },
        })
    );
};
